#version 460
#extension GL_GOOGLE_include_directive : enable
#extension GL_EXT_shader_explicit_arithmetic_types_int64 : require

#include "../../../../core/shader_std.h"
#include "../../../../core/shader_curve.h"



layout(points) in;
layout(line_strip, max_vertices=2) out;


layout(location = 0) in VS_GS_VERTEX {
	vec4 vVertB;
	vec4 vVertE;
	vec4 vColor;
}vertex_in[];


layout(location = 0) out vec4 gColor;
out gl_PerVertex {
	vec4	gl_Position;
};

//vec2 pos[4] = {vec2(10.0, 10.0), vec2(100.0, 10.0), vec2(10.0, 100.0), vec2(100.0, 100.0)};

void main(void){
	gl_Position = vertex_in[0].vVertB;
	//gl_Position = vec4(0,0,0,1);
	gColor = vertex_in[0].vColor;
	EmitVertex();
	gl_Position = vertex_in[0].vVertE;
	//gl_Position = vec4(1000,1000,0,1);

	gColor = vertex_in[0].vColor;
	EmitVertex();

	EndPrimitive();
}



 